<?php
if( !defined('__ROOT__') ) die('Access denied');
class Core{
	public $validInfo = null;

	public function valid($data, $rule){
		$valid = new V;
		$rs = $valid->valid($data, $rule);
		$this->validInfo = $valid->get_valid_detail();
		return $rs;
	}

	public function _get( $param ){
		if( isset($this->$param) ){
			return $this->$param;
		}
		return null;
	}

	public function error( $msg ){
		$view = new View();
		$view->error( $msg );
	}
}
